Fix a spec for an error message

Akinori MUSHA 9 years ago
parent
commit
1f49085770
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec/models/agents/website_agent_spec.rb

+ 1 - 1
spec/models/agents/website_agent_spec.rb

@@ -83,7 +83,7 @@ describe Agents::WebsiteAgent do
83 83
             'url' => { 'foo' => 'bar' },
84 84
           }
85 85
           expect(@checker).to_not be_valid
86
-          expect(@checker.errors_on(:base)).to include("When type is json, all extractions must have a path attribute.")
86
+          expect(@checker.errors_on(:base)).to include(/When type is json, all extractions must have a path attribute/)
87 87
 
88 88
           @checker.options['type'] = 'json'
89 89
           @checker.options['extract'] = {